/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除安全通道 POST /scenic/escapeAccess/deleteAccessById */
export async function scenicEscapeAccessDeleteAccessByIdUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicEscapeAccessDeleteAccessByIdUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/escapeAccess/deleteAccessById',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 安全通道详情 POST /scenic/escapeAccess/getAccessById */
export async function scenicEscapeAccessGetAccessByIdUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicEscapeAccessGetAccessByIdUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinganquantongdaovo>(
    '/scenic/escapeAccess/getAccessById',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 分页查询安全通道 POST /scenic/escapeAccess/pageAccess */
export async function scenicEscapeAccessPageAccessUsingPost({
  body,
  options,
}: {
  body: API.EscapeAccessQueryBo6a5eb7ee8104416aB53bB77b8cc6ef24;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoanquantongdaovo>(
    '/scenic/escapeAccess/pageAccess',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 保存安全通道 如需修改则传递id POST /scenic/escapeAccess/saveAccess */
export async function scenicEscapeAccessSaveAccessUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinganquantongdaovo>(
    '/scenic/escapeAccess/saveAccess',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
